home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Time Message.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
1KB
|
56 lines
[SUBJECT]
Description=Display a message that depends on the time on the visitor's clock
ImageIndex=-1
Folder=Tools
[BODY_TEXT]
;<div align="center">
;<script language="JavaScript">
;
;<!-- Begin
;document.write("<center><font size=+1>");
;day = new Date();
;hr = day.getHours();
;
;if ((hr == 23) || (hr == 0) || (hr == 1) || (hr == 2) || (hr == 3) || (hr == 4) || (hr == 5) || (hr == 6))
; document.write("`night_message`");
;
;if ((hr == 7) || (hr == 8) || (hr == 9) || (hr == 10) || (hr == 11))
; document.write("`morning_message`");
;
;if ((hr == 12) || (hr == 13) || (hr == 14) || (hr == 15) || (hr == 16))
; document.write("`afternoon_message`");
;
;if ((hr == 17) || (hr == 18) || (hr == 19) || (hr == 20) || (hr == 21) || (hr == 22))
; document.write("`evening_message`");
;document.write("</font></center>");
;// End -->
;</script>
;</div>
;
[`night_message`]
Kind=S
Value=Good Night!
[`morning_message`]
Kind=S
Value=Good Morning!
[`afternoon_message`]
Kind=S
Value=Good Afternoon!
[`evening_message`]
Kind=S
Value=Good Evening!